package cn.tedu.egarticle01.base.response;

import lombok.Getter;

@Getter
public enum StatusCode {
    OPERATION_SUCCESS(100100,"操作成功"),
    OPERATION_FAIL(100200,"操作失败"),
    USERNAME_PASSWORD_ERROR(100300,"用户名或密码错误"),
    NOT_LOGIN(100400,"用户未登录"),
    VALIDATED_ERROR(100500,"参数校验失败")
    ;
    private Integer state;
    private String message;

    StatusCode(Integer state, String message) {
        this.state = state;
        this.message = message;
    }
}
